package com.xd.service.admin.XTGLY.brand.impl;

import com.xd.Mapper.BrandMapper;
import com.xd.Result.CommonResult;
import com.xd.service.admin.XTGLY.brand.updateBrandService;
import com.xd.vo.UpdateBrand;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class updateBrandServiceImpl implements updateBrandService {
    @Autowired
    BrandMapper brandMapper;
    @Override
    public CommonResult updateBrand(UpdateBrand updateBrand) {
        if (updateBrand.getName().equals("")){
            return CommonResult.error("输入数据不能为空");
        }
        brandMapper.updateBrand(updateBrand);
        return CommonResult.Success();

    }
}
